package com.study.book.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @TableName LibrarySeat
 */
@TableName(value ="LibrarySeatDetail")
@Data
public class LibrarySeatDetail implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     *   标记1早 2下午 3晚上
     */
    @TableField(value = "status")
    private String status;

    /**
     * 用户id
     */
    @TableField(value = "userId")
    private Integer userId;

    /**
     * 评论用户
     */
    @TableField(exist=false)
    private String adminName;

    /**
     * 图书馆ID
     */
    @TableField(value = "libraryId")
    private Integer libraryid;

    /**
     * 图书馆名字
     */
    @TableField(exist=false)
    private String libraryName;

    /**
     * 图书馆地址
     */
    @TableField(exist=false)
    private String libraryAddress;

    /**
     * 图片
     */
    @TableField(exist=false)
    private String photo;

    /**
     * 座位id
     */
    @TableField(value = "seatId")
    private Integer seatId;

    /**
     * 占座时间
     */
    @TableField(value = "seatTime")
    private String seatTime;

    /**
     * 创建时间
     */
    @JsonFormat(pattern="YYYY-MM-dd HH:mm")
    @TableField(value = "creatTime")
    private Date creatTime;

    /**
     * 评论
     */
    @TableField(value = "comment")
    private String comment;

    /**
     * 评分星数，几星好评
     */
    @TableField(value = "star")
    private Integer star;

    /**
     * 是否评论 1待评价 2已完成
     */
    @TableField(value = "flag")
    private String flag;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
